﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations.Schema;

namespace WaterRevenueMS.Componnent.Data.Mapping.BasicSet
{
    //公司设置
    partial class CompanySetMap
    {
        partial void CompanySetMapAppend()
        {
            this.HasKey(t => t.Id);
            this.Property(t => t.Dan_WMC)
                .HasMaxLength(64);
            this.Property(t => t.Dan_WJC)
                .HasMaxLength(16);
            this.Property(t => t.Dan_WMCE)
                .HasMaxLength(128);
            this.Property(t => t.Dan_WDZ)
                .HasMaxLength(128);

            this.Property(t => t.Dian_H)
                .HasMaxLength(128);
            this.Property(t => t.Chuan_Z)
                .HasMaxLength(64);
            this.Property(t => t.Fu_ZR)
                .HasMaxLength(32);
            this.Property(t => t.Lian_XR)
                .HasMaxLength(32);
            this.Property(t => t.You_ZBM)
                .HasMaxLength(8);
            this.Property(t => t.Qi_YZY)
                .HasMaxLength(128);
            this.Property(t => t.Qi_YYX)
                .HasMaxLength(128);
           
            this.Property(t => t.Yin_HZH)
                .HasMaxLength(2048);
            this.Property(t => t.Shui_H)
                .HasMaxLength(64);

            this.ToTable("Set_Dan_WSZ");
            this.Property(t => t.Id).HasColumnName("Dan_WSZ_ID")
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity);

            this.HasOptional(t => t.BankSet).WithMany(d => d.CompanySet).HasForeignKey(t => t.Yin_HSZ_No);//银行设置代码ID
        }
    }
}
